import request from '@/utils/request'

// 查询未打卡预警列表
export function listUnsignwarning(query) {
  return request({
    url: '/report/unsignwarning/list',
    method: 'get',
    params: query
  })
}

// 查询未打卡预警详细
export function getUnsignwarning(id) {
  return request({
    url: '/report/unsignwarning/' + id,
    method: 'get'
  })
}

// 新增未打卡预警
export function addUnsignwarning(data) {
  return request({
    url: '/report/unsignwarning',
    method: 'post',
    data: data
  })
}

// 修改未打卡预警
export function updateUnsignwarning(data) {
  return request({
    url: '/report/unsignwarning',
    method: 'put',
    data: data
  })
}

// 删除未打卡预警
export function delUnsignwarning(id) {
  return request({
    url: '/report/unsignwarning/' + id,
    method: 'delete'
  })
}
